package com.better;

import com.better.common.mongo.repository.CommonMongoRepositoryImpl;
import com.better.common.swagger.EnableSwagger2Doc;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
import org.springframework.data.mongodb.repository.config.EnableMongoRepositories;

@EnableSwagger2Doc
@SpringBootApplication(exclude = MongoAutoConfiguration.class)
@EnableMongoRepositories(repositoryBaseClass = CommonMongoRepositoryImpl.class,basePackages = ("com.better.*"))
//@EnableConfigurationProperties(Audience.class)	//读取配置文件
public class ZxycalApplication {
    private static Log log = LogFactory.getLog(ZxycalApplication.class);

    public static void main(String[] args) {
        log.info("info消息==========================");
        log.debug("debug消息+++++++++++++++++++++++++");
        log.error("error消息-------------------------------------------");
        SpringApplication.run(ZxycalApplication.class, args);
        log.error("启动成功");
    }
}
